Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 0 |
1 | import shlinkApiClient from '../../api/ShlinkApiClient'; |
||
12 | export default function reducer(state = defaultState, action) { |
||
13 | 3 | switch (action.type) { |
|
14 | case SELECT_SERVER: |
||
15 | 1 | return action.selectedServer; |
|
16 | case RESET_SELECTED_SERVER: |
||
17 | 1 | return defaultState; |
|
18 | default: |
||
19 | 1 | return state; |
|
20 | } |
||
21 | } |
||
22 | |||
39 |